import { panel_zindex } from "./orc/panel/panel";
import PanelDefine from "./orc/PanelDefine";
import PanelManager from "./orc/PanelManager";


const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {
    onLoad() {
        //生成各层layer
        fgui.GRoot.create();
        for (let key in panel_zindex) {
            console.log('>>>>>>>>>>>>>>>>panel_zindex', key);
            let layer: fgui.GComponent = new fgui.GComponent();
            layer.name = key;
            layer.node.name = key;
            fgui.GRoot.inst.addChild(layer);
        }

        PanelManager.loadPanel(PanelDefine.PANEL_ID_1001, 'asdasdas');
    }
}
